package cn.stylefeng.guns.modular.membership.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @author allen
 * @date 2021/4/12 14:19
 * @version 1.0
 */

/**
 * 会员中心的收货地址表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "membership_delivery_address")
public class MembershipDeliveryAddressEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 属于哪个用户账号
     */
    @TableField(value = "user_account_id")
    private Long userAccountId;

    /**
     * 省
     */
    @TableField(value = "province")
    private String province;

    /**
     * 市
     */
    @TableField(value = "city")
    private String city;

    /**
     * 区
     */
    @TableField(value = "district")
    private String district;

    /**
     * 收货人
     */
    @TableField(value = "consignee")
    private String consignee;

    /**
     * 收货地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 收货人电话号码
     */
    @TableField(value = "phone_number")
    private String phoneNumber;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_USER_ACCOUNT_ID = "user_account_id";

    public static final String COL_PROVINCE = "province";

    public static final String COL_CITY = "city";

    public static final String COL_DISTRICT = "district";

    public static final String COL_CONSIGNEE = "consignee";

    public static final String COL_ADDRESS = "address";

    public static final String COL_PHONE_NUMBER = "phone_number";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";
}